<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'updateroom.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <FORM name="myForm" method="post" action="room/updateRoom.action">
  <div id="content_right">
			<TABLE class=table cellSpacing=1>
				<TBODY>		
				    <tr>						
						<TD>
						    <input type="hidden" name="ccId" value="${room.ccId}">
						</TD>
					</tr>				
					<tr>
						<TD vAlign=center align=left>
							机房名称
						</TD>
						<TD>
						    <input type="text" name="ccName" value="${room.ccName}">
						</TD>
					</tr>	
					<tr>
						<TD vAlign=center align=left>
							所属部门编号
						</TD>						
						<td class="tb_mid1">
							<select name="department">
								<option value="${room.department.deptId}">
									${room.department.deptId}
								</option>
								<s:iterator value="list01" var="li01">
									<s:if test="#li01.deptId != room.department.deptId">
										<option value="${li01.deptId}">
											<s:property value="#li01.deptId" />
										</option>
									</s:if>
								</s:iterator>
							</select>
						</td>
					</tr>	
					<tr>
						<TD vAlign=center align=left>
							负责人编号
						</TD>						
						<td class="tb_mid1">
							<select name="employee">
								<option value="${room.employee.empId}">
									${room.employee.empId}
								</option>
								<s:iterator value="list02" var="li02">
									<s:if test="#li02.empId != room.employee.empId">
										<option value="${li02.empId}">
											<s:property value="#li02.empId" />
										</option>
									</s:if>
								</s:iterator>
							</select>
						</td>
					</tr>
					<tr>
						<TD vAlign=center align=left>
							地址
						</TD>
						<TD>
						    <input type="text" name="ccAddr" value="${room.ccAddr}">
						</TD>
                    </tr>
                    <tr>
						<TD vAlign=center align=left>
							备注
						</TD>
						<TD>
						    <input type="text" name="ccRemark" value="${room.ccRemark}">
						</TD>
			        </tr>
				</TBODY>
			</TABLE>
			<p align="center">
						<!--<font color="red">${msg5}</font>  -->
				
						<input type="submit" class="button" value="保存">
						&nbsp;&nbsp;&nbsp;
						<input type="reset" class="button" value="全部重写">
						<input type="button" class="button" value="返回 &raquo"
							onclick="location='roomList.action'">
					</p>
					</div>
		</FORM>
  </body>
</html>